const httpClient = require("http");

httpClient
    .createServer((req, res) => {
        req.pipe(process.stdout);
        console.log(req.method);
        res.end("success");
    })
    .listen(8080);
console.log("server is listening 8080");
